snapcraft clean failed but exit 0
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
On our jenkins pipelines we're using snapcraft to generate our package. Just before calling 'snapcraft' command we use the 'snapcraft clean' command.
We noticed the 'snapcraft clean' command without something to clean doesn't give an exit 1 error.
Our shell scripts are set with the option > set -e
This is the output of the 'snapcraft clean' command:
----------------------------------------------------------------------------------------------------
Calling 'snapcraft clean' ...
info failed: The following errors occurred:
instance "snapcraft-<app-name>" does not exist
Starting Snapcraft 7.5.3
Logging execution to '/home/user/.local/state/snapcraft/log/snapcraft-20231122-235234.244208.log'
... 'snapcraft clean' complete.
----------------------------------------------------------------------------------------------------
Despite the reported error the return code is 0
Evaluation history
No evaluation history available.